#ifndef HANDKEYBOARD_H
#define HANDKEYBOARD_H

#include <QWidget>
#include <QToolButton>
#include <QVBoxLayout>
#include <QDebug>
#include <QPaintEvent>
#include <QTimer>
#include <QPainter>
#include "entity/characterentity.h"
#include "test/handwritingtest.h"
#include "server/chinesecharacterserver.h"

class HandKeyboard : public QWidget
{
    Q_OBJECT
public:
    HandKeyboard(QWidget *parent = nullptr);

    void setRightToolWidget();

    //右侧工具栏__相关
    //删除按钮
    QToolButton *btnDel;
    //确认按钮
     QToolButton *btnSure;

    HandWritingTest *keyboard;
    //右侧工具栏布局
    QVBoxLayout *layout;

private:

    ChineseCharacterServer server;

    void savePoint(CharacterEntity);

signals:
    void toEN_keyBoard();

public slots:
    void recognizeChinese(CharacterEntity);
    void enterSlot();

};

#endif // HANDKEYBOARD_H
